<#assign path = request.getContextPath() />
<!DOCTYPE html>
<html class="x-admin-sm">

	<head>
		<meta charset="UTF-8">
		<title>规则设置</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="stylesheet" href="${path}/static/css/font.css">
		<link rel="stylesheet" href="${path}/static/css/css.css">
		<link rel="stylesheet" type="text/css" href="${path}/static/css/xadmin.css" />
		<script src="${path}/static/lib/layui/layui.js"></script>
		<script src="${path}/static/js/jquery.min.js"></script>
		<script src="${path}/static/lib/layui/lay/modules/table.js"></script>
		<script src="${path}/static/js/xadmin.js" type="text/javascript"></script>
	</head>

	<body>
		<div class="x-nav">
			<a href="../index.html">首页</a>
			<span>&gt;</span>
			<a><cite>规则设置</cite></a>
		</div>
		<div class="layui-fluid">
			<div class="layui-row layui-col-space15">
				<div class="layui-col-md12">
					<div id="btns" class="btns">
						<button type="button" class="layui-btn btn" onclick="xadmin.open('新增规则','')">新增规则</button>
					</div>
					<div class="layui-card">
						<div class="layui-card-body ">
							<form class="layui-form layui-col-space5">
								<div class="layui-input-inline layui-show-xs-block">
									<label for="username" class="lable">规则名称</label>
								</div> 
								<div class="layui-input-inline layui-show-xs-block">
									<input type="text" placeholder="规则名称" class="layui-input"/>
								</div>
								
								<div class="layui-input-inline layui-show-xs-block">
									<label for="username" class="lable">考勤规则类型</label>
								</div> 
								<div class="layui-input-inline layui-show-xs-block">
									<select name="contrller">
										<option value="0">全部</option>
										<option value="1">固定班制</option>
										<option value="2">弹性工作制</option>
									</select>
								</div>
								

								<div class="layui-input-inline layui-show-xs-block">
									<button class="layui-btn btn">筛选</button>
									<button class="layui-btn btn">导出</button>
								</div>
							</form>
						</div>

						<div class="layui-card-body layui-table-body layui-table-main">
							<table class="layui-table layui-form">
								<thead>
									<tr>
										<th>规则名称</th>
										<th>考勤规则类型</th>
										<th>考勤时间</th>
										<th>适用人员</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>安丰大厦</td>
										<td>固定班制</td>
										<td>
											<span>周一、周二、周三、周四、周五</span>
											<p>8:00至14:00</p>
										</td>
										<td>
											<span>人事部、营销推广部、财务...</span>
											<p>共<b id="">100</b>人</p>
										</td>
										<td class="td-manage">
											<a title="详情" onclick="xadmin.open('详情','./leave/Supplement.html',800,640)" class="btn-bor">详情</a>
											<a title="编辑" onclick="xadmin.open('编辑','./operation/edit.html')" href="javascript:;" class="btn-bor">编辑</a>
											<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;" class="btn-bor">删除</a>
										</td>
									</tr>
									<tr>
										<td>安丰大厦</td>
										<td>弹性工作制</td>
										<td>
											<span>周一、周二、周三、周四、周五</span>
											<p>9:00至22:00</p>
										</td>
										<td>
											<span>财务</span>
											<p>共<b id="">10</b>人</p>
										</td>
										<td class="td-manage">
											<a title="详情" onclick="xadmin.open('详情','./leave/Supplement.html',800,640)" class="btn-bor">详情</a>
											<a title="编辑" onclick="xadmin.open('编辑','./operation/edit.html')" href="javascript:;" class="btn-bor">编辑</a>
											<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;" class="btn-bor">删除</a>
										</td>
									</tr>
									<tr>
										<td>安丰</td>
										<td>固定班制</td>
										<td>
											<span>周一、周二、周三、周四、周五</span>
											<p>9:00至18:00</p>
										</td>
										<td>
											<span>研发部，测试部</span>
											<p>共<b id="">60</b>人</p>
										</td>
										<td class="td-manage">
											<a title="详情" onclick="xadmin.open('详情','./leave/Supplement.html',800,640)" class="btn-bor">详情</a>
											<a title="编辑" onclick="xadmin.open('编辑','./operation/edit.html')" href="javascript:;" class="btn-bor">编辑</a>
											<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;" class="btn-bor">删除</a>
										</td>
									</tr>
								</tbody>
							</table>
						</div>

						<div class="layui-table-page">
							<div id="layui-table-page1">
								<div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-3"><a href="javascript:;" class="layui-laypage-prev layui-disabled"
									 data-page="0"><i class="layui-icon"></i></a><span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>1</em></span><a
									 href="javascript:;" data-page="2">2</a><a href="javascript:;" data-page="3">3</a><span class="layui-laypage-spr">…</span><a
									 href="javascript:;" class="layui-laypage-last" title="尾页" data-page="300">300</a><a href="javascript:;"
									 class="layui-laypage-next" data-page="2"><i class="layui-icon"></i></a><span class="layui-laypage-skip">到第<input
										 type="text" min="1" value="1" class="layui-input">页<button type="button" class="layui-laypage-btn">确定</button></span><span
									 class="layui-laypage-count">共 300 条</span><span class="layui-laypage-limits"><select lay-ignore="">
											<option value="10" selected="">10 条/页</option>
											<option value="20">20 条/页</option>
											<option value="30">30 条/页</option>
											<option value="40">40 条/页</option>
											<option value="50">50 条/页</option>
											<option value="100">100 条/页</option>
										</select>
									</span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
	
	<script>
		/*用户-删除*/
		function member_del(obj, id) {
			layer.confirm('删除后不可恢复，该规则使用人员将处于自由大打卡状态，确认要删除吗？',
			function(index) {
				//发异步删除数据
				$(obj).parents("tr").remove();
				layer.msg('已删除!', {
					icon: 1,
					time: 1000
				});
			});
		}
	</script>
</html>
